Rails.application.routes.draw do
 get 'admin' => 'admin#index'
controller :sessions do
get 'login' => :new
post 'login' => :create
delete 'logout' => :destroy
end
get 'signup' => 'users#new'
  get 'sessions/new'

  get 'sessions/create'

  get 'sessions/destroy'

  resources :users
  resources :orders
  resources :line_items
  resources :carts
  get 'store/index'
resources :comments
  resources :products  do
     resources :comments
end
  root  'store#index'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
